package com.mesnac.comm.config;

import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;

public class LoggerConfig {

	public static final String login = "登录";
	public static final String account = "过账";
	public static final String accounnterLoad = "";
	public static final String accountOnePass = "";
	public static final String addBooking = "增加一个凭证";
	public static final String bookingDerivedDate = "";
	public static final String bookingRecord = "";
	public static final String cancelAccount = "取消过账";
	public static final String checkOnePass ="审核凭证";
	public static final String checkPass = "";
	public static final String checkPersonal = "";
	public static final String checkPrjFinance = "";
	public static final String createBookingm = "创建凭证";
	public static final String deleteBookingm = "删除凭证";
	public static final String editBookingm = "编辑凭证";
	public static final String saveBookingm = "保存编辑的凭证";
	public static final String saveBookingd = "保存编辑的凭证";
	public static final String searchBookingm = "查询凭证";
	public static final String searchRecord = "查询历史记录";
	
	private static Map<String,String> operateMean = new HashMap<String,String>();
	static {
		try{
			for (Field s : LoggerConfig.class.getFields()) {
				operateMean.put(s.getName(), (String)s.get(s.getName()));
			}
		}catch (Exception e) {
			// TODO: handle exception
		}
		
	}
	public static String getMethodStr(String methodStr){
		if(operateMean.get(methodStr)!=null)
			return operateMean.get(methodStr);
		else {
			return methodStr;
		}
	}
}
